package ch.pizzapp.kurier.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class PlaceData implements Parcelable {

	@JsonProperty("locationID")
	String locationID;
	@JsonProperty("minorder")
	String minorder;
	@JsonProperty("ordertime")
	String ordertime;
	@JsonProperty("title")
	String title;
	@JsonProperty("zip")
	String zip;

	Boolean isSelect;

	public Boolean getIsSelect() {
		return isSelect;
	}

	public void setIsSelect(Boolean isSelect) {
		this.isSelect = isSelect;
	}

	public String getLocationID() {
		return this.locationID;
	}

	public void setLocationID(String locationID) {
		this.locationID = locationID;
	}

	public String getMinorder() {
		return this.minorder;
	}

	public void setMinorder(String minorder) {
		this.minorder = minorder;
	}

	public String getOrdertime() {
		return this.ordertime;
	}

	public void setOrdertime(String ordertime) {
		this.ordertime = ordertime;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getZip() {
		return this.zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	protected PlaceData(Parcel in) {
		locationID = in.readString();
		minorder = in.readString();
		ordertime = in.readString();
		title = in.readString();
		zip = in.readString();
	}

	public PlaceData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(locationID);
		dest.writeString(minorder);
		dest.writeString(ordertime);
		dest.writeString(title);
		dest.writeString(zip);
	}

	public static final Parcelable.Creator<PlaceData> CREATOR = new Parcelable.Creator<PlaceData>() {
		public PlaceData createFromParcel(Parcel in) {
			return new PlaceData(in);
		}

		public PlaceData[] newArray(int size) {
			return new PlaceData[size];
		}
	};
}